package com.ruoyi.dev.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 批处理对象 dev_batch
 * 
 * @author yepanpan
 * @date 2025-02-25
 */
@Data
public class DevBatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @NotNull
    private String name;

    /** SQL操作 */
    @Excel(name = "SQL操作")
    @NotNull
    private String sqls;

    /** 状态 */
    @Excel(name = "状态", dictType="ext_status", comboReadDict=true)
    @NotNull
    private String status;

    /** 最后执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastTime;


}
